import request from '@/utils/request'

// 查询资金流水列表
export function listBalanceItem(query) {
  return request({
    url: '/business/balanceItem/list',
    method: 'get',
    params: query
  })
}

// 查询资金流水所有列表
export function listAllBalanceItem(query) {
  return request({
    url: '/business/balanceItem/listAll',
    method: 'get',
    params: query
  })
}

// 查询资金流水详细
export function getBalanceItem(id) {
  return request({
    url: '/business/balanceItem/getInfo/' + id,
    method: 'get'
  })
}

// 新增资金流水
export function addBalanceItem(data) {
  return request({
    url: '/business/balanceItem/add',
    method: 'post',
    data: data
  })
}

// 修改资金流水
export function updateBalanceItem(data) {
  return request({
    url: '/business/balanceItem/edit',
    method: 'post',
    data: data
  })
}

// 删除资金流水
export function delBalanceItem(id) {
  return request({
    url: '/business/balanceItem/remove/' + id,
    method: 'get'
  })
}
